package net.javalib.flickr.search.util;

import java.util.HashMap;
import java.util.Map;

import android.view.View;

public class ViewWrapperHelper {
	public Object tag;
	public View view;
	
	protected Map<Integer, View> views = new HashMap<Integer, View>();
	
	public ViewWrapperHelper(View view) {
		this.view = view;
	}
	
	public View getView(int rid) {
		if (!views.containsKey(rid)) {
			views.put(rid, view.findViewById(rid));
		}
		return views.get(rid);
	}
	
	public void refresh() {}
}
